package practice06;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice06
 * @ClassName: Test
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/10 10:35
 * @Copyright 大牛版板所有
 */
public class Test {
    public static void main(String[] args) {
        Person p = new Teacher(5000,100);
        p.pay();

        p = new Student(8000);
        p.pay();
    }
}
